import type { App } from "vue";
// 引入样式
import "./less/index.less";
// 导入非default
import * as WebxComponents from "./components";
// 导入hooks
export * from "./hooks";
// 导入pinia
import { createPinia } from "pinia";

export default {
  install(app: App) {
    // 全局组件注册
    Object.entries(WebxComponents).forEach(([, component]: any) => {
      app.component(component.name, component);
    });
    // 注册pinia
    app.use(createPinia());
  }
};
